home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form RUFDBForm
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- Caption = "Database Location"
- ClientHeight = 1425
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 7365
- Height = 1830
- KeyPreview = -1 'True
- Left = 1035
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1425
- ScaleWidth = 7365
- Top = 1140
- Width = 7485
- Begin CommonDialog CMDialog1
- Left = 6840
- Top = 0
- End
- Begin CommandButton cmdSel
- Caption = "Select &Database"
- Height = 375
- Left = 840
- TabIndex = 4
- Top = 960
- Width = 1695
- End
- Begin CommandButton cmdCancel
- Cancel = -1 'True
- Caption = "&Cancel"
- Height = 375
- Left = 4680
- TabIndex = 3
- Top = 960
- Width = 1695
- End
- Begin CommandButton cmdOK
- Caption = "&OK"
- Default = -1 'True
- Enabled = 0 'False
- Height = 375
- Left = 2760
- TabIndex = 2
- Top = 960
- Width = 1695
- End
- Begin TextBox txtDatabase
- Height = 285
- Left = 120
- TabIndex = 1
- Top = 480
- Width = 7095
- End
- Begin Label Label1
- BackColor = &H00C0C0C0&
- Caption = "Database path and name:"
- Height = 255
- Left = 120
- TabIndex = 0
- Top = 240
- Width = 4095
- End
- Option Explicit
- 'Subroutine: cmdCancel_Click Author: A.Pasho
- ' Date 8/9/94
- 'Description: ends the program
- Sub cmdCancel_Click ()
- If bRufDbEnd Then
- End
- Else
- Unload RUFDBForm
- End If
- End Sub
- 'Subroutine: cmdOK_Click Author: A.Pasho
- ' Date 8/9/94
- 'Description: gets the database path & appends the
- 'database file name; closes the form
- Sub cmdOk_Click ()
- Dim x%
- sDBPath = txtDatabase.Text
- Unload RUFDBForm
- End Sub
- Sub cmdSel_Click ()
- CMDialog1.Filename = "*.mdb"
- CMDialog1.Action = 1
- txtDatabase.Text = CMDialog1.Filename
- End Sub
- Sub Form_KeyDown (KeyCode As Integer, Shift As Integer)
- If KeyCode = KEY_F1 Then
- CallHelp Database_Location_Form
- End If
- End Sub
- Sub Form_Load ()
- txtDatabase.Text = sDBPath
- End Sub
- Sub txtDatabase_Change ()
- If Len(txtDatabase.Text) < 1 Then
- cmdOK.Enabled = False
- Else
- cmdOK.Enabled = True
- End If
- End Sub
- Sub txtDatabase_KeyPress (KeyAscii As Integer)
- KeyAscii = Asc(UCase(Chr(KeyAscii)))
- End Sub
-